﻿<%@ Page Title="Actualizar Beneficiario"  MasterPageFile="~/Site.Master" Language="C#" AutoEventWireup="true" CodeBehind="wfrmActualizarBeneficiario.aspx.cs" Inherits="pryTransfinter.Transaciones.wfrmActualizarBeneficiario" %>

<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
 <title>Actualizar Beneficiario</title>
    <style type="text/css">
.DivPrincipal
{
    width:80%;
    margin: 0 auto;
}
.DivContenedor
{
    width:100%;
    margin:0 auto;
    
}
.p
{
    padding:0.2cm 2cm 0.2cm 2cm;
    text-align:left;
}
.input
{
    font-family: 'Lucida Sans';
    font-size: 12px;
    text-transform: uppercase;
}

</style>
<script type="text/javascript">

    function agregar() {
        lblconfirmacion.SetText("Esta seguro de registrar los datos ingresados.")
        popupConfirmarAB.Show();
    }
    function modificar() {
        lblconfirmacion.SetText("Esta seguro de actualizar el registro seleccionado.")
        popupConfirmarAB.Show();
    }
    function eliminar() {
        lblconfirmacion.SetText("Esta seguro de eliminar el registro seleccionado.")
        popupConfirmarAB.Show();
    }

    function mensaje() {
        popupMensajeAB.Show();
    }
</script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="id_transfiter" runat="server">
    <asp:UpdatePanel ID="updateactualizarb" runat="server">
    <ContentTemplate>
    
    
    <div class="DivContenedor">
    <table align="center" width="80%">
    <tr>
    <td>
    
   
    <fieldset class="DivPrincipal" style="width:80%">
    <legend>Beneficiario</legend>

   <table width="80%" align="center">
   <tr>
   <td class="p">
       <dx:ASPxLabel ID="ASPxLabel1" runat="server" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" Text="Cuenta Beneficiario :">
       </dx:ASPxLabel>
       </td>
   <td class="p" style="text-align:left" align="left">
       <dx:ASPxTextBox ID="txtCuentaBen" runat="server" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" 
           SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
           Width="300px">
           <ValidationSettings SetFocusOnError="True">
               <RequiredField ErrorText="Obligatorio" IsRequired="True" />
           </ValidationSettings>
       </dx:ASPxTextBox>
       </td>
   </tr>
   <tr>
   <td class="p">
       <dx:ASPxLabel ID="ASPxLabel2" runat="server" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" Text="Nombre Beneficiario  :">
       </dx:ASPxLabel>
       </td>
   <td class="p" style="text-align:left" align="left">
       <dx:ASPxTextBox ID="txtNombreBen" runat="server" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" 
           SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
           Width="300px">
           <ValidationSettings SetFocusOnError="True">
               <RequiredField ErrorText="Obligatorio" IsRequired="True" />
           </ValidationSettings>
       </dx:ASPxTextBox>
       </td>
   </tr>
   <tr>
   <td class="p" style="text-align:left">
       <dx:ASPxLabel ID="ASPxLabel3" runat="server" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" Text="Dirección Beneficiario :" Width="180px">
       </dx:ASPxLabel>
       </td>
   <td class="p" align="left">
       <dx:ASPxTextBox ID="txtDireccionBen" runat="server" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" 
           SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
           Width="350px">
           <ValidationSettings SetFocusOnError="True">
               <RequiredField ErrorText="Obligatorio" IsRequired="True" />
           </ValidationSettings>
       </dx:ASPxTextBox>
       </td>
   </tr>
   <tr>
   <td></td>
   <td></td>
   </tr>
   </table>
</fieldset>
 </td>
    </tr>
    </table>
   <table width="80%" align="center">
   <tr>
   <td class="p" style="width:33%">
       <dx:ASPxButton ID="btnAgregarB" runat="server" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" 
           SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
           Text="Agregar" Width="100px" onclick="btnAgregarB_Click">
           <ClientSideEvents Click="function(s, e) {
	agregar();
}" />
       </dx:ASPxButton>
       </td>
   <td class="p" style="width:33%">
       <dx:ASPxButton ID="btnModificarB" runat="server" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" 
           SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
           Text="Modificar" onclick="btnModificarB_Click" Width="100px">
           <ClientSideEvents Click="function(s, e) {
modificar();
}" />
       </dx:ASPxButton>
       </td>
   <td class="p" style="width:33%">
       <dx:ASPxButton ID="btnEliminarB" runat="server" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" 
           SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
           Text="Eliminar" Width="100px" onclick="btnEliminarB_Click">
           <ClientSideEvents Click="function(s, e) {
eliminar();
}" />
       </dx:ASPxButton>
       </td>
   </tr>
   <tr>
   <td class="p" colspan="3">
       <dx:ASPxGridView ID="grdBeneficiario" runat="server" 
           AutoGenerateColumns="False" EnableCallBacks="False" Width="100%" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" KeyFieldName="cuentaBeneficiario" 
           onfocusedrowchanged="grdBeneficiario_FocusedRowChanged">
           <Columns>
               <dx:GridViewDataTextColumn Caption="Cuenta Beneficiario" 
                   FieldName="cuentaBeneficiario" VisibleIndex="0">
               </dx:GridViewDataTextColumn>
               <dx:GridViewDataTextColumn Caption="Nombre Beneficiario" 
                   FieldName="nomBeneficiario" VisibleIndex="1">
               </dx:GridViewDataTextColumn>
               <dx:GridViewDataTextColumn Caption="Dirección Beneficiario" 
                   FieldName="dirBeneficiario" VisibleIndex="2">
               </dx:GridViewDataTextColumn>
               <dx:GridViewDataTextColumn Caption="IDC_CLIENTE" FieldName="idcCliente" 
                   VisibleIndex="3" Visible="False">
               </dx:GridViewDataTextColumn>
           </Columns>
           <SettingsBehavior ProcessFocusedRowChangedOnServer="True" 
               AllowFocusedRow="True" />
           <SettingsBehavior ProcessFocusedRowChangedOnServer="True" /><SettingsBehavior ProcessFocusedRowChangedOnServer="True" /><SettingsBehavior ProcessFocusedRowChangedOnServer="True" /><SettingsPager Visible="False">
           </SettingsPager>
           <Settings ShowVerticalScrollBar="True" />
       <Settings ShowVerticalScrollBar="True" /><Settings ShowVerticalScrollBar="True" /><Settings ShowVerticalScrollBar="True" />
           <Images SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
               <LoadingPanelOnStatusBar Url="~/App_Themes/Office2003Blue/GridView/gvLoadingOnStatusBar.gif">
               </LoadingPanelOnStatusBar>
               <LoadingPanel Url="~/App_Themes/Office2003Blue/GridView/Loading.gif">
               </LoadingPanel>
           </Images>
           <ImagesFilterControl>
               <LoadingPanel Url="~/App_Themes/Office2003Blue/Editors/Loading.gif">
               </LoadingPanel>
           </ImagesFilterControl>
           <Styles CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
               CssPostfix="Office2003Blue">
               <LoadingPanel ImageSpacing="10px">
               </LoadingPanel>
               <Header ImageSpacing="5px" SortingImageSpacing="5px">
               </Header>
           </Styles>
           <StylesEditors>
               <ProgressBar Height="25px">
               </ProgressBar>
           </StylesEditors>
       </dx:ASPxGridView>
       </td>
   </tr>
   <tr>
   <td  style="width:33%">
       &nbsp;</td>
   <td class="p" style="width:33%">
       <dx:ASPxButton ID="btnCerrar" runat="server" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" 
           SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" Text="Cerrar" 
           Width="100px" onclick="btnCerrar_Click" CausesValidation="False">
       </dx:ASPxButton>
       </td>
   <td style="width:33%">
       &nbsp;</td>
   </tr>
   </table>
    </div>

    <dx:ASPxPopupControl ID="popupMensajeAB" runat="server" Width="300px" 
        ClientInstanceName="popupMensajeAB" Modal="True" 
        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
        CloseAction="CloseButton" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        ShowPageScrollbarWhenModal="True" HeaderText="Mensaje">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <ClientSideEvents Shown="function(s, e) {
	popupMensajeAB.Hide();
}" />
        <HeaderStyle>
        <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
    <dx:ASPxPanel ID="ASPxPanel1" runat="server" Width="300px">
        <panelcollection>
            <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
            <table align="center">
            <tr>
            <td align="center">
                <dx:ASPxLabel ID="lblmensaje" runat="server">
                </dx:ASPxLabel>
            </td>
            </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                </tr>
            <tr>
            <td  align="center">
                <dx:ASPxButton ID="btnAceptarM" runat="server" Text="Aceptar" Width="100px" 
                    CausesValidation="False" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                    <ClientSideEvents Click="function(s, e) {
	popupMensajeAB.Hide();
}" />
                </dx:ASPxButton>
            </td>
            </tr>
            </table>
            </dx:PanelContent>
        </panelcollection>
    </dx:ASPxPanel>
            </dx:PopupControlContentControl>
</ContentCollection>
    </dx:ASPxPopupControl>

    <dx:ASPxPopupControl ID="popupConfirmarAB" runat="server" Width="300px" 
        ClientInstanceName="popupConfirmarAB" Modal="True" 
        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
        CloseAction="CloseButton" EnableHotTrack="False" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        ShowPageScrollbarWhenModal="True" HeaderText="Confirmación" 
            AllowDragging="True">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <HeaderStyle>
        <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" SupportsDisabledAttribute="True">
    <dx:ASPxPanel ID="ASPxPanel2" runat="server" Width="300px">
        <panelcollection>
            <dx:PanelContent ID="PanelContent2" runat="server" SupportsDisabledAttribute="True">
            <asp:UpdatePanel ID="updatepopup" runat="server">
            <ContentTemplate>
            <table align="center">
            <tr>
            <td colspan="2" align="center">
                <dx:ASPxLabel ID="lblconfirmacion" runat="server" 
                    ClientInstanceName="lblconfirmacion">
                </dx:ASPxLabel>
            </td>
            </tr>
                <tr>
                    <td align="center" colspan="2">
                        &nbsp;</td>
                </tr>
            <tr>
            <td>
                <dx:ASPxButton ID="btnAceptarC" runat="server" Text="Aceptar" Width="100px" 
                    CausesValidation="False" OnClick="btnAceptarC_Click" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                    <ClientSideEvents Click="function(s, e) {
	popupConfirmarAB.Hide();
}" LostFocus="function(s, e) {
	popupMensajeAB.Show();
}" />
                </dx:ASPxButton>
            </td>
            <td>
                <dx:ASPxButton ID="btnCancelarC" runat="server" Text="Cancelar" Width="100px" 
                    CausesValidation="False" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                    <ClientSideEvents Click="function(s, e) {
	popupConfirmarAB.Hide();
}" />
                </dx:ASPxButton>
            </td>
            </tr>
            </table>
            </ContentTemplate>
            </asp:UpdatePanel>
            
            </dx:PanelContent>
        </panelcollection>
    </dx:ASPxPanel>
            </dx:PopupControlContentControl>
</ContentCollection>
    </dx:ASPxPopupControl>

</ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>


